package nccloud.sso.util;

public class TestThirdLogin {
	public static void main(String[] args) {

		try {
			// 时间毫秒数
			String timemills = System.currentTimeMillis() + "";
			String usercode = "wy";
			String encodeKey = "24a9ab02d297124237a8f89c1611135f";

//			usercode|时间毫秒数|加密密钥
			String token;
//			token = AESUtil.encode(usercode + "|" + timemills + "|" + encodeKey);
			token = usercode + "|" + timemills + "|" + encodeKey;

			String url = "http://127.0.0.1:8888/nccloud/sso/visit.action?";
			url = url + "token=" + token + "&ts=" + timemills + "&usercode=" + usercode;
			System.out.println(url);

		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}


	}

}
